﻿using System.Net;
using Blazor.CoffeeTalesApi.Entity;
using Blazor.Core;
using Blazor.Model;
using Blazor.Model.Entity;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace Blazor.Services.Update;

public class SetNativeVersionRequest
{
    [JsonProperty("channel")]
    [JsonConverter(typeof(StringEnumConverter))]
    public Channel Channel { get; set; }

    [JsonProperty("min_native_version")]
    public uint MinNativeVersion { get; set; }

    [JsonProperty("latest_native_version")]
    public uint LatestNativeVersion { get; set; }
}